<script>
export default {
	onLaunch: function () {
		console.log('App Launch')
		wx.loadFontFace({
			global: true,
			family: 'ttf-one',
			source: `url("https://dzxyk.cdu.edu.cn/ttf/汉仪中楷简.TTF")`,
			// source: `url(https://dzxyk.cdu.edu.cn/api/ttf/han_yi_zhong_kai_jian.TTF)`,
			success: () => {
				console.log('汉仪中楷简成功');
			},
			fail: (e) => {
				console.log('汉仪中楷简失败', e);
			}
		});

		wx.loadFontFace({
			global: true,
			family: 'ttf-two',
			source: `url("https://dzxyk.cdu.edu.cn/ttf/方正兰亭中黑_GBK.TTF")`,
			// source: `url(https://dzxyk.cdu.edu.cn/api/ttf/zhong_hei.TTF)`,
			success: () => {
				console.log('方正兰亭中黑成功');
			},
			fail: (e) => {
				console.log('方正兰亭中黑失败', e);
			}
			// source: `url(https://dzxyk.cdu.edu.cn/api/ttf/zhong_hei.TTF)`
		});
	},
	onShow: function () {
		console.log('App Show')
	},
	onHide: function () {
		console.log('App Hide')
	}
}
</script>

<style>
/*每个页面公共css */
/* 设置圆角 */
uni-checkbox.round .wx-checkbox-input,
uni-checkbox.round .uni-checkbox-input {
	width: 29rpx;
	height: 29rpx;
	background: #FFFFFF;
	border: 2rpx solid #999999;
	border-radius: 8rpx;
}

/* 设置背景色 */
uni-checkbox.red[checked] .wx-checkbox-input,
uni-checkbox.red.checked .uni-checkbox-input {
	width: 29rpx;
	height: 29rpx;
	background-color: #850C13 !important;
	border-color: #850C13 !important;
	color: #ffffff !important;
}

/* 在 app.wxss 或页面 wxss */
.uni-modal__btn_primary {
	width: 560rpx !important;
	height: 88rpx !important;
	background: #850C13 !important;
	border-radius: 10rpx 10rpx 10rpx 10rpx !important;
	color: #FFFFFF !important;
	margin: 0 20rpx 20rpx 0;
}

.uni-modal__btn_default {

	/* 取消按钮文字颜色 */
}

.uni-modal__textarea {
	font-family: PingFang SC, PingFang SC;
	font-weight: 400;
	font-size: 28rpx;
	color: #999999;
	line-height: 50rpx;
	letter-spacing: 1px;
}

.uni-modal__title {
	font-family: PingFang SC, PingFang SC;
	font-weight: 400;
	font-size: 32rpx;
	color: #333333;
	line-height: 50rpx;
	letter-spacing: 1px;
}

uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
	width: 29rpx;
	height: 29rpx;
	background-color: #850C13 !important;
	border-color: #850C13 !important;
	color: #ffffff !important;
}
/* #ifdef H5 */ 
uni-page-head {
	display: none;
}
/* #endif */
</style>
